#ifndef TRT_HELPER_H
#define TRT_HELPER_H

#include <iostream>
#include <fstream>
#include <opencv2/opencv.hpp>
#include "common.h"



class TRTHelper {
public:
    static TRTHelper& getInstance() {
        static TRTHelper instance;
        return instance;
    }

    // 禁止拷贝和赋值
    TRTHelper(const TRTHelper&) = delete;
    TRTHelper& operator=(const TRTHelper&) = delete;

    // 通用功能函数
    trtModel load_model(const char* trt_name);
    float sigmoid_function(float a);
    std::vector<std::string> readClassNames(const std::string& classNamePath);
    void draw_pose_keyPoint(const float* data, const cv::Mat &inputimage);

   
private:
    TRTHelper() {} // 私有构造函数
};

#endif